#include "businessaccount.h"

BusinessAccount::BusinessAccount(Username* us, Profilo* pr): Account(us,pr){}

void BusinessAccount::gestionegruppo(QPushButton *pb){
    pb->setEnabled(true);
}

void BusinessAccount::gestEraseG(QPushButton *pb){
    pb->setEnabled(false);
}

void BusinessAccount::gestQPBchoice(QPushButton* bus, QPushButton* exe){
    bus->setEnabled(false);
    exe->setEnabled(true);
}

bool BusinessAccount::insertContatto(Contatto* con){
    if(collegamenti.count()<30){
        collegamenti.push_back(con);
        return true;
    }
    else return false;
}

int BusinessAccount::limitsu(){
    return 60;
}

int BusinessAccount::limitsg(){
    return 100;
}

int BusinessAccount::getMax(){
    return 30;
}
